Wed, 31 Dec 2014 07:53:36 +0100
Correct small whitespace inconsistency, lost while renaming variables.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* |
michael@0 | 3 | * Any copyright is dedicated to the Public Domain. |
michael@0 | 4 | * http://creativecommons.org/licenses/publicdomain/ |
michael@0 | 5 | * Contributor: Jason Orendorff |
michael@0 | 6 | */ |
michael@0 | 7 | |
michael@0 | 8 | //----------------------------------------------------------------------------- |
michael@0 | 9 | var BUGNUMBER = 452498; |
michael@0 | 10 | var summary = 'TM: upvar2 regression tests'; |
michael@0 | 11 | var actual = ''; |
michael@0 | 12 | var expect = ''; |
michael@0 | 13 | |
michael@0 | 14 | |
michael@0 | 15 | //----------------------------------------------------------------------------- |
michael@0 | 16 | test(); |
michael@0 | 17 | //----------------------------------------------------------------------------- |
michael@0 | 18 | |
michael@0 | 19 | function test() |
michael@0 | 20 | { |
michael@0 | 21 | enterFunc ('test'); |
michael@0 | 22 | printBugNumber(BUGNUMBER); |
michael@0 | 23 | printStatus (summary); |
michael@0 | 24 | |
michael@0 | 25 | // ------- Comment #51 From Jason Orendorff |
michael@0 | 26 | |
michael@0 | 27 | // Assertion failure: UPVAR_FRAME_SKIP(uva->vector[i]) == 0 |
michael@0 | 28 | // at ../jsopcode.cpp:2791 |
michael@0 | 29 | // |
michael@0 | 30 | // when decompiling the eval code, which is: |
michael@0 | 31 | // |
michael@0 | 32 | // main: |
michael@0 | 33 | // 00000: 10 getupvar 0 |
michael@0 | 34 | // 00003: 10 getprop "y" |
michael@0 | 35 | // 00006: 10 popv |
michael@0 | 36 | // 00007: 10 stop |
michael@0 | 37 | try |
michael@0 | 38 | { |
michael@0 | 39 | function f() { var x; eval("x.y"); } |
michael@0 | 40 | f(); |
michael@0 | 41 | } |
michael@0 | 42 | catch(ex) |
michael@0 | 43 | { |
michael@0 | 44 | } |
michael@0 | 45 | reportCompare(expect, actual, summary); |
michael@0 | 46 | |
michael@0 | 47 | exitFunc ('test'); |
michael@0 | 48 | } |