diff --git a/lib/VM/JSLib/RegExp.cpp b/lib/VM/JSLib/RegExp.cpp index 411af72eca2..809fe695fc5 100644 --- a/lib/VM/JSLib/RegExp.cpp +++ b/lib/VM/JSLib/RegExp.cpp @@ -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(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));