зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1172150 - Remove bogus assert. (r=bz)
This commit is contained in:
Родитель
b54f8f42d0
Коммит
87c0701240
|
@ -0,0 +1,10 @@
|
|||
// Make sure that we can plumb new.target, even if the results are going to
|
||||
// throw.
|
||||
|
||||
assertThrowsInstanceOf(() => new ""(...Array()), TypeError);
|
||||
|
||||
assertThrowsInstanceOf(() => new ""(), TypeError);
|
||||
assertThrowsInstanceOf(() => new ""(1), TypeError);
|
||||
|
||||
if (typeof reportCompare === 'function')
|
||||
reportCompare(0,0,"OK");
|
|
@ -4587,10 +4587,8 @@ js::SpreadCallOperation(JSContext* cx, HandleScript script, jsbytecode* pc, Hand
|
|||
if (!GetElements(cx, aobj, length, args.array()))
|
||||
return false;
|
||||
|
||||
if (constructing) {
|
||||
MOZ_ASSERT(newTarget.isObject());
|
||||
if (constructing)
|
||||
args.newTarget().set(newTarget);
|
||||
}
|
||||
|
||||
switch (op) {
|
||||
case JSOP_SPREADNEW:
|
||||
|
|
Загрузка…
Ссылка в новой задаче