bug16252562.js 592 B

1234567891011121314
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. function AsmModule(stdlib, foreign) {
  6. 'use asm';
  7. var Bar = foreign.Bar;
  8. function foo() {
  9. return new Bar();
  10. }
  11. return foo;
  12. }
  13. AsmModule(this, { Bar: function () { console.log(`new.target: ${new.target}`); } })();