test262/test/language/statements/with/12.10-2-1.js

27 lines
419 B
JavaScript

// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 12.10-2-1
description: with - expression being Number
includes: [runTestCase.js]
flags: [noStrict]
---*/
function testcase() {
var o = 2;
var foo = 1;
try
{
with (o) {
foo = 42;
}
}
catch(e)
{
}
return true;
}
runTestCase(testcase);