mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1155081 - Part 13: Remove ThrowError intrinsic. r=till
This commit is contained in:
parent
290078dd9b
commit
14b74dd440
@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
/*global ToObject: false, ToInteger: false, IsCallable: false,
|
||||
ThrowError: false, ThrowRangeError: false, ThrowTypeError: false,
|
||||
ThrowRangeError: false, ThrowTypeError: false,
|
||||
AssertionFailed: false,
|
||||
MakeConstructible: false, DecompileArg: false,
|
||||
RuntimeDefaultLocale: false,
|
||||
|
@ -823,7 +823,6 @@ bool intrinsic_IsObject(JSContext* cx, unsigned argc, Value* vp);
|
||||
bool intrinsic_ToInteger(JSContext* cx, unsigned argc, Value* vp);
|
||||
bool intrinsic_ToString(JSContext* cx, unsigned argc, Value* vp);
|
||||
bool intrinsic_IsCallable(JSContext* cx, unsigned argc, Value* vp);
|
||||
bool intrinsic_ThrowError(JSContext* cx, unsigned argc, Value* vp);
|
||||
bool intrinsic_ThrowRangeError(JSContext* cx, unsigned argc, Value* vp);
|
||||
bool intrinsic_ThrowTypeError(JSContext* cx, unsigned argc, Value* vp);
|
||||
bool intrinsic_NewDenseArray(JSContext* cx, unsigned argc, Value* vp);
|
||||
|
@ -187,17 +187,6 @@ ThrowErrorWithType(JSContext* cx, JSExnType type, const CallArgs& args)
|
||||
errorArgs[0].ptr(), errorArgs[1].ptr(), errorArgs[2].ptr());
|
||||
}
|
||||
|
||||
bool
|
||||
js::intrinsic_ThrowError(JSContext* cx, unsigned argc, Value* vp)
|
||||
{
|
||||
CallArgs args = CallArgsFromVp(argc, vp);
|
||||
MOZ_ASSERT(args.length() >= 1);
|
||||
|
||||
uint32_t errorNumber = args[0].toInt32();
|
||||
ThrowErrorWithType(cx, JSExnType(GetErrorMessage(nullptr, errorNumber)->exnType), args);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
js::intrinsic_ThrowRangeError(JSContext* cx, unsigned argc, Value* vp)
|
||||
{
|
||||
@ -984,7 +973,6 @@ static const JSFunctionSpec intrinsic_functions[] = {
|
||||
JS_FN("IsCallable", intrinsic_IsCallable, 1,0),
|
||||
JS_FN("IsConstructor", intrinsic_IsConstructor, 1,0),
|
||||
JS_FN("OwnPropertyKeys", intrinsic_OwnPropertyKeys, 1,0),
|
||||
JS_FN("ThrowError", intrinsic_ThrowError, 4,0),
|
||||
JS_FN("ThrowRangeError", intrinsic_ThrowRangeError, 4,0),
|
||||
JS_FN("ThrowTypeError", intrinsic_ThrowTypeError, 4,0),
|
||||
JS_FN("AssertionFailed", intrinsic_AssertionFailed, 1,0),
|
||||
|
Loading…
Reference in New Issue
Block a user