mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-26 11:12:19 +08:00
Merge pull request #3929 from DanielRosenwasser/fixesFor1.5
Fixes for correcting 'arguments' semantics in tests
This commit is contained in:
@@ -1 +1 @@
|
||||
|
||||
--target es5
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import base = require("git");
|
||||
|
||||
var git = new base.Git("../.git");
|
||||
git.call_git("", "clone", "", {}, ["https://github.com/borisyankov/DefinitelyTyped.git", "d.ts"], (err, data) => {
|
||||
git.call_git("", "clone", "", {}, ["https://github.com/borisyankov/DefinitelyTyped.git", "d.ts"], function (err, data) {
|
||||
console.log(arguments);
|
||||
});
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ false
|
||||
false.should.be.false;
|
||||
(0).should.not.be.false;
|
||||
|
||||
var args = (a: string, b: string, c: string) => { return arguments; };
|
||||
var args = function (a: string, b: string, c: string) { return arguments; };
|
||||
args.should.be.arguments;
|
||||
['a'].should.not.be.arguments;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ var Deferred:any = client.Deferred;
|
||||
client.init({ token: 'YOUR_TOKEN' });
|
||||
|
||||
// get your info.
|
||||
client.get('me', (err, res) => {
|
||||
client.get('me', function (err, res) {
|
||||
console.log(arguments);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user