986e7cefe1
The null constructor they had previously could be observed as crashes in the V8 API's Object::CreationContext() method and in Object.observe. BUG=v8:3750 LOG=n R=arv@chromium.org, dslomov@chromium.org Review URL: https://codereview.chromium.org/787763005 Cr-Commit-Position: refs/heads/master@{#25757}
9 lines
279 B
JavaScript
9 lines
279 B
JavaScript
// 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.
|
|
//
|
|
// Flags: --harmony-classes
|
|
'use strict';
|
|
class Example { }
|
|
Object.observe(Example.prototype, function(){});
|