mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
Bug 1155081 - Part 7: Replace ThrowError with ThrowTypeError in RegExp.js. r=till
This commit is contained in:
parent
836f41fa7e
commit
6ddc8b1a6d
@ -7,7 +7,7 @@ function RegExpFlagsGetter() {
|
||||
// Steps 1-2.
|
||||
var R = this;
|
||||
if (!IsObject(R))
|
||||
ThrowError(JSMSG_NOT_NONNULL_OBJECT, R === null ? "null" : typeof R);
|
||||
ThrowTypeError(JSMSG_NOT_NONNULL_OBJECT, R === null ? "null" : typeof R);
|
||||
|
||||
// Step 3.
|
||||
var result = "";
|
||||
@ -43,7 +43,7 @@ function RegExpToString()
|
||||
// Steps 1-2.
|
||||
var R = this;
|
||||
if (!IsObject(R))
|
||||
ThrowError(JSMSG_NOT_NONNULL_OBJECT, R === null ? "null" : typeof R);
|
||||
ThrowTypeError(JSMSG_NOT_NONNULL_OBJECT, R === null ? "null" : typeof R);
|
||||
|
||||
// Steps 3-4.
|
||||
var pattern = R.source;
|
||||
|
Loading…
Reference in New Issue
Block a user