nodejs/deps/v8/test/mjsunit/serialize-embedded-error.js

14 lines
281 B
JavaScript
Raw Permalink Normal View History

2014-11-14 00:52:27 +01:00
// Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// --cache=code
2014-11-14 00:52:27 +01:00
var caught = false;
try {
parseInt() = 0;
} catch(e) {
caught = true;
}
assertTrue(caught);