| Index: test/mjsunit/load-callback-from-value-classic.js
|
| diff --git a/test/mjsunit/compiler/minus-zero.js b/test/mjsunit/load-callback-from-value-classic.js
|
| similarity index 84%
|
| copy from test/mjsunit/compiler/minus-zero.js
|
| copy to test/mjsunit/load-callback-from-value-classic.js
|
| index 6efceb54e36834c217732a7974f0c5d2a2cca132..0030c61cf86d8ac0566dff935bd5ac7d34b175a0 100644
|
| --- a/test/mjsunit/compiler/minus-zero.js
|
| +++ b/test/mjsunit/load-callback-from-value-classic.js
|
| @@ -25,13 +25,14 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -// Flags: --allow-natives-syntax
|
| +Object.defineProperty(Boolean.prototype, "v",
|
| + {get:function() { return this; }});
|
|
|
| -function add(x, y) {
|
| - return x + y;
|
| +function f(b) {
|
| + return b.v;
|
| }
|
|
|
| -assertEquals(0, add(0, 0));
|
| -assertEquals(0, add(0, 0));
|
| -%OptimizeFunctionOnNextCall(add);
|
| -assertEquals(-0, add(-0, -0));
|
| +assertEquals("object", typeof f(true));
|
| +assertEquals("object", typeof f(true));
|
| +assertEquals("object", typeof f(true));
|
| +assertEquals("object", typeof f(true));
|
|
|