Skip to content

Commit

Permalink
Merge pull request #2446 from enaqx/master
Browse files Browse the repository at this point in the history
Add 'use strict' to statisfy linter rules
  • Loading branch information
zpao committed Nov 6, 2014
2 parents 3e60195 + bea9fbb commit dca7ffb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stubs/Object.assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign

"use strict";

function assign(target, sources) {
if (target == null) {
throw new TypeError('Object.assign target cannot be null or undefined');
Expand Down Expand Up @@ -40,6 +42,6 @@ function assign(target, sources) {
}

return to;
};
}

module.exports = assign;
2 changes: 2 additions & 0 deletions src/utils/deprecated.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
* @providesModule deprecated
*/

"use strict";

var assign = require('Object.assign');
var warning = require('warning');

Expand Down
2 changes: 2 additions & 0 deletions src/vendor_deprecated/core/copyProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
* @providesModule copyProperties
*/

"use strict";

/**
* Copy properties from one or more objects (up to 5) into the first object.
* This is a shallow copy. It mutates the first object and also returns it.
Expand Down

0 comments on commit dca7ffb

Please sign in to comment.