blob: f1f4375ae9d7d5be62b343c2cfa9919bdf4c377c [file] [log] [blame]
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: Sanity test for throw statement
es5id: 12.13_A1
description: Trying to throw exception with "throw"
---*/
var inCatch = false;
try {
throw "expected_message";
} catch (err) {
assert.sameValue(err, "expected_message");
inCatch = true;
}
assert.sameValue(inCatch, true);