Skip to content

Commit

Permalink
remove ERR_NULL_TARGET symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
mithriljs-cn committed Jun 23, 2017
1 parent 8b6559d commit 5a8bd3e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
3 changes: 1 addition & 2 deletions dist/objutil.amd.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
define(['exports'], function (exports) { 'use strict';

/*jslint node: true */
var ERR_NULL_TARGET = 'null target';
var _keys = Object.keys;
var objProto = Object.prototype;

Expand Down Expand Up @@ -161,7 +160,7 @@ function invert(obj) {

function _assignHelper(target, arg, cb) {
if (target == null) { // TypeError if undefined or null
throw new TypeError(ERR_NULL_TARGET)
throw new TypeError('null target')
}
var to = Object(target);
for (var i = 1, len = arg.length; i < len; i++) {
Expand Down
3 changes: 1 addition & 2 deletions dist/objutil.cjs.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

/*jslint node: true */
var ERR_NULL_TARGET = 'null target';
var _keys = Object.keys;
var objProto = Object.prototype;

Expand Down Expand Up @@ -161,7 +160,7 @@ function invert(obj) {

function _assignHelper(target, arg, cb) {
if (target == null) { // TypeError if undefined or null
throw new TypeError(ERR_NULL_TARGET)
throw new TypeError('null target')
}
var to = Object(target);
for (var i = 1, len = arg.length; i < len; i++) {
Expand Down
3 changes: 1 addition & 2 deletions dist/objutil.es.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*jslint node: true */
var ERR_NULL_TARGET = 'null target';
var _keys = Object.keys;
var objProto = Object.prototype;

Expand Down Expand Up @@ -159,7 +158,7 @@ function invert(obj) {

function _assignHelper(target, arg, cb) {
if (target == null) { // TypeError if undefined or null
throw new TypeError(ERR_NULL_TARGET)
throw new TypeError('null target')
}
var to = Object(target);
for (var i = 1, len = arg.length; i < len; i++) {
Expand Down
3 changes: 1 addition & 2 deletions dist/objutil.iife.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
'use strict';

/*jslint node: true */
var ERR_NULL_TARGET = 'null target';
var _keys = Object.keys;
var objProto = Object.prototype;

Expand Down Expand Up @@ -162,7 +161,7 @@ function invert(obj) {

function _assignHelper(target, arg, cb) {
if (target == null) { // TypeError if undefined or null
throw new TypeError(ERR_NULL_TARGET)
throw new TypeError('null target')
}
var to = Object(target);
for (var i = 1, len = arg.length; i < len; i++) {
Expand Down
3 changes: 1 addition & 2 deletions dist/objutil.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
}(this, (function (exports) { 'use strict';

/*jslint node: true */
var ERR_NULL_TARGET = 'null target';
var _keys = Object.keys;
var objProto = Object.prototype;

Expand Down Expand Up @@ -165,7 +164,7 @@ function invert(obj) {

function _assignHelper(target, arg, cb) {
if (target == null) { // TypeError if undefined or null
throw new TypeError(ERR_NULL_TARGET)
throw new TypeError('null target')
}
var to = Object(target);
for (var i = 1, len = arg.length; i < len; i++) {
Expand Down
3 changes: 1 addition & 2 deletions src/objutil.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*jslint node: true */
'use strict'

var ERR_NULL_TARGET = 'null target'
var _keys = Object.keys
var objProto = Object.prototype

Expand Down Expand Up @@ -161,7 +160,7 @@ function invert(obj) {

function _assignHelper(target, arg, cb) {
if (target == null) { // TypeError if undefined or null
throw new TypeError(ERR_NULL_TARGET)
throw new TypeError('null target')
}
var to = Object(target)
for (var i = 1, len = arg.length; i < len; i++) {
Expand Down

0 comments on commit 5a8bd3e

Please sign in to comment.