Skip to content

Commit e52b1fc

Browse files
committed
Merge branch 'master' into test262RunnerUpdates
2 parents 081ff7c + 580e23e commit e52b1fc

2 files changed

Lines changed: 17 additions & 10 deletions

File tree

Jakefile

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ desc("Builds the test infrastructure using the built compiler");
366366
task("tests", ["local", run].concat(libraryTargets));
367367

368368
function exec(cmd, completeHandler) {
369-
var ex = jake.createExec([cmd]);
369+
var ex = jake.createExec([cmd], {windowsVerbatimArguments: true});
370370
// Add listeners for output and error
371371
ex.addListener("stdout", function(output) {
372372
process.stdout.write(output);
@@ -488,18 +488,25 @@ task("runtests-browser", ["tests", "browserify", builtLocalDirectory], function(
488488
exec(cmd);
489489
}, {async: true});
490490

491+
function getDiffTool() {
492+
var program = process.env['DIFF']
493+
if (!program) {
494+
fail("Add the 'DIFF' environment variable to the path of the program you want to use.")
495+
}
496+
return program;
497+
}
491498

492499
// Baseline Diff
493-
desc("Diffs the compiler baselines using the diff tool specified by the %DIFF% environment variable");
500+
desc("Diffs the compiler baselines using the diff tool specified by the 'DIFF' environment variable");
494501
task('diff', function () {
495-
var cmd = "%DIFF% " + refBaseline + ' ' + localBaseline;
502+
var cmd = '"' + getDiffTool() + '" ' + refBaseline + ' ' + localBaseline;
496503
console.log(cmd)
497504
exec(cmd);
498505
}, {async: true});
499506

500-
desc("Diffs the RWC baselines using the diff tool specified by the %DIFF% environment variable");
507+
desc("Diffs the RWC baselines using the diff tool specified by the 'DIFF' environment variable");
501508
task('diff-rwc', function () {
502-
var cmd = "%DIFF% " + refRwcBaseline + ' ' + localRwcBaseline;
509+
var cmd = '"' + getDiffTool() + '" ' + refRwcBaseline + ' ' + localRwcBaseline;
503510
console.log(cmd)
504511
exec(cmd);
505512
}, {async: true});

src/lib/es6.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ interface NumberConstructor {
211211
* Converts a string to a floating-point number.
212212
* @param string A string that contains a floating-point number.
213213
*/
214-
parseFloat(string: string);
214+
parseFloat(string: string): number;
215215

216216
/**
217217
* Converts A string to an integer.
@@ -438,7 +438,7 @@ interface StringConstructor {
438438
* @param template A well-formed template string call site representation.
439439
* @param substitutions A set of substitution values.
440440
*/
441-
raw(template: TemplateStringsArray, ...substitutions: any[]);
441+
raw(template: TemplateStringsArray, ...substitutions: any[]): string;
442442
}
443443

444444
interface IteratorResult<T> {
@@ -472,8 +472,8 @@ declare var GeneratorFunction: GeneratorFunctionConstructor;
472472

473473
interface Generator<T> extends Iterator<T> {
474474
next(value?: any): IteratorResult<T>;
475-
throw (exception: any);
476-
return (value: T);
475+
throw (exception: any): IteratorResult<T>;
476+
return (value: T): IteratorResult<T>;
477477
// [Symbol.toStringTag]: string;
478478
}
479479

@@ -874,7 +874,7 @@ interface DataView {
874874
}
875875

876876
interface DataViewConstructor {
877-
new (buffer: ArrayBuffer, byteOffset?: number, byteLength?: number);
877+
new (buffer: ArrayBuffer, byteOffset?: number, byteLength?: number): DataView;
878878
}
879879
declare var DataView: DataViewConstructor;
880880

0 commit comments

Comments
 (0)