Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/VM/JSLib/RegExp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1961,7 +1961,7 @@ regExpPrototypeSymbolSplit(void *, Runtime &runtime, NativeArgs args) {
// 2. If Type(rx) is not Object, throw a TypeError exception.
if (LLVM_UNLIKELY(!vmisa<JSObject>(args.getThisArg()))) {
return runtime.raiseTypeError(
"Cannot call RegExp.protoype[Symbol.split] on a non-object.");
"Cannot call RegExp.prototype[Symbol.split] on a non-object.");
}
// 3. Let S be ToString(string).
auto strRes = toString_RJS(runtime, args.getArgHandle(0));
Expand Down