[INFER] Watch for non-closed local names aliased by XML QNAME opcodes, bug 665812.

This commit is contained in:
Brian Hackett 2011-07-02 07:08:55 -07:00
parent 47fd6595dc
commit 9e5b330883
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,7 @@
// |jit-test| error: TypeError
(function() {
function::d = 0
d.(l)
function d() {}
})()

View File

@ -493,6 +493,8 @@ ScriptAnalysis::analyzeBytecode(JSContext *cx)
case JSOP_NAMEINC:
case JSOP_NAMEDEC:
case JSOP_FORNAME:
case JSOP_QNAMEPART:
case JSOP_QNAMECONST:
checkAliasedName(cx, pc);
usesScope = true;
isInlineable = false;