Files
sdk/pkg/dev_compiler/test/codegen_expected/language/patch_test.js
T
Leaf Petersen 0315595d60 Check in codegen test expectations.
Codegen output is checked into repository to make codegen regressions
more visible (especially readability regressions).

BUG=
R=rnystrom@google.com

Review URL: https://codereview.chromium.org/2128353002 .
2016-07-07 15:57:22 -07:00

24 lines
740 B
JavaScript

dart_library.library('language/patch_test', null, /* Imports */[
'dart_sdk',
'expect'
], function load__patch_test(exports, dart_sdk, expect) {
'use strict';
const core = dart_sdk.core;
const dart = dart_sdk.dart;
const dartx = dart_sdk.dartx;
const expect$ = expect.expect;
const patch_test = Object.create(null);
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
patch_test.patch = function() {
return 12;
};
dart.fn(patch_test.patch, VoidTodynamic());
patch_test.main = function() {
let x = patch_test.patch();
expect$.Expect.equals(12, x);
};
dart.fn(patch_test.main, VoidTodynamic());
// Exports:
exports.patch_test = patch_test;
});