OLD | NEW |
(Empty) | |
| 1 dart_library.library('destructuring', null, /* Imports */[ |
| 2 'dart/_runtime', |
| 3 'dart/core' |
| 4 ], /* Lazy imports */[ |
| 5 ], function(exports, dart, core) { |
| 6 'use strict'; |
| 7 let dartx = dart.dartx; |
| 8 function f(a, b, c = 1) { |
| 9 f(a, b, c); |
| 10 } |
| 11 dart.fn(f, dart.dynamic, [core.int, dart.dynamic], [dart.dynamic]); |
| 12 function g(a, b, {c = 1} = {}) { |
| 13 f(a, b, c); |
| 14 } |
| 15 dart.fn(g, dart.dynamic, [core.int, dart.dynamic], {c: dart.dynamic}); |
| 16 function invalid_names1(let$, func, arguments$) { |
| 17 f(let$, func, arguments$); |
| 18 } |
| 19 dart.fn(invalid_names1, dart.dynamic, [core.int, dart.dynamic, dart.dynamic]); |
| 20 function invalid_names2(let$ = null, func = 1, arguments$ = null) { |
| 21 f(let$, func, arguments$); |
| 22 } |
| 23 dart.fn(invalid_names2, dart.dynamic, [], [core.int, dart.dynamic, dart.dynami
c]); |
| 24 function invalid_names3({["let"]: let$ = null, ["function"]: func = null, ["ar
guments"]: arguments$ = 2} = {}) { |
| 25 f(let$, func, arguments$); |
| 26 } |
| 27 dart.fn(invalid_names3, dart.dynamic, [], {let: core.int, function: dart.dynam
ic, arguments: dart.dynamic}); |
| 28 function names_clashing_with_object_props({constructor = null, valueOf = null,
hasOwnProperty = 2} = Object.create(null)) { |
| 29 f(constructor, valueOf, hasOwnProperty); |
| 30 } |
| 31 dart.fn(names_clashing_with_object_props, dart.dynamic, [], {constructor: core
.int, valueOf: dart.dynamic, hasOwnProperty: dart.dynamic}); |
| 32 // Exports: |
| 33 exports.f = f; |
| 34 exports.g = g; |
| 35 exports.invalid_names1 = invalid_names1; |
| 36 exports.invalid_names2 = invalid_names2; |
| 37 exports.invalid_names3 = invalid_names3; |
| 38 exports.names_clashing_with_object_props = names_clashing_with_object_props; |
| 39 }); |
OLD | NEW |