Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Side by Side Diff: test/codegen/expect/destructuring.js

Issue 1677863002: Use default params when --destructure-named-params + fix renaming of reserved destructured params (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/codegen/expect/closure.js ('k') | test/codegen/expect/destructuring.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 });
OLDNEW
« no previous file with comments | « test/codegen/expect/closure.js ('k') | test/codegen/expect/destructuring.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698