зеркало из https://github.com/mozilla/gecko-dev.git
Fix decompiler LHS -> RHS special cases switch to cover JSOP_SETXMLNAME (597870, r=igor; CLOSED TREE).
This commit is contained in:
Родитель
52e7bc13b8
Коммит
dc9289096a
|
@ -2098,6 +2098,9 @@ Decompile(SprintStack *ss, jsbytecode *pc, intN nb, JSOp nextop)
|
|||
case JSOP_GETLOCALPROP:
|
||||
op = JSOP_GETLOCAL;
|
||||
break;
|
||||
case JSOP_SETXMLNAME:
|
||||
op = JSOp(JSOP_GETELEM2);
|
||||
break;
|
||||
default:
|
||||
LOCAL_ASSERT(0);
|
||||
}
|
||||
|
|
|
@ -38,3 +38,4 @@ script regress-595365-1.js
|
|||
fails-if(!xulRuntime.shell) script regress-595365-2.js
|
||||
script regress-569464.js
|
||||
script regress-596103.js
|
||||
script regress-597870.js
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/*
|
||||
* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/licenses/publicdomain/
|
||||
*/
|
||||
|
||||
try {
|
||||
(function() {
|
||||
__defineSetter__("x", Math.sin);
|
||||
} ());
|
||||
} catch(e) {}
|
||||
function::x =
|
||||
Proxy.createFunction(function() {
|
||||
return {
|
||||
get: function() {
|
||||
return [];
|
||||
}
|
||||
};
|
||||
} (),
|
||||
function() {});
|
||||
|
||||
reportCompare(0, 0, "ok");
|
Загрузка…
Ссылка в новой задаче