diff options
Diffstat (limited to 'deps/v8/test/inspector/debugger/resources/break-locations-class-fields.js')
-rw-r--r-- | deps/v8/test/inspector/debugger/resources/break-locations-class-fields.js | 204 |
1 files changed, 204 insertions, 0 deletions
diff --git a/deps/v8/test/inspector/debugger/resources/break-locations-class-fields.js b/deps/v8/test/inspector/debugger/resources/break-locations-class-fields.js new file mode 100644 index 0000000000..c576c0ed6e --- /dev/null +++ b/deps/v8/test/inspector/debugger/resources/break-locations-class-fields.js @@ -0,0 +1,204 @@ +// Copyright 2017 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. + +let x = class {} + +x = class { + x = 1; + y = 2; +} + +x = class { + x = foo(); + y = 2; + z = bar(); +} + +x = class { + x = foo(); + y = 2; + z = bar(); + constructor() { + this.x; + } +} + +x = class { + x = foo(); + y = 2; + constructor() { + this.x; + } + z = bar(); +} + +x = class { + x = foo(); + y = 2; + constructor() { + this.x; + } + z = bar(); +} + +x = class { + x = 1; + foo() {} + y = 2; +} + +x = class { + x = (function() { + foo(); + })(); + y = (() => { + bar(); + })(); +} + +x = class { + x = function() { + foo(); + }; +} + +x = class { + x = async function() { + await foo(); + }; +} + +x = class { + x = () => { + foo(); + }; + y = () => bar(); +} + +x = class { + x = async () => { + await foo(); + }; + y = async () => await bar(); +} + +x = class { + [x] = 1; + [foo()] = 2; +} + +x = class { + [x] = [...this]; +} + +x = class { + x; + [foo()]; +} + +x = class { + x = function*() { + yield 1; + }; +} + +x = class { + static x = 1; + static y = 2; +} + +x = class { + static x = foo(); + static y = 2; + static z = bar(); +} + +x = class { + static x = foo(); + static y = 2; + static z = bar(); + constructor() { + this.x; + } +} + +x = class { + static x = foo(); + static y = 2; + constructor() { + this.x; + } + static z = bar(); +} + +x = class { + static x = 1; + static foo() {} + bar() {} + static y = 2; +} + +x = class { + static x = (function() { + foo(); + })(); + static y = (() => { + bar(); + })(); +} + +x = class { + static x = function() { + foo(); + }; +} + +x = class { + static x = async function() { + await foo(); + }; +} + +x = class { + static x = () => { + foo(); + }; + static y = () => bar(); +} + +x = class { + static x = async () => { + await foo(); + }; + static y = async () => await bar(); +} + +x = class { + static [x] = 1; + static [foo()] = 2; +} + +x = class { + static [x] = [...this]; +} + +x = class { + static x; + static [foo()]; +} + +x = class { + static x = function*() { + yield 1; + }; +} + +x = class { + static x = 1; + y = 2; + static [z] = 3; + [p] = 4; + static [foo()] = 5; + [bar()] = 6; +} |