Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed Apr 23, 2014
1 parent b1c4d5c commit cd4698c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion jsesc.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
var regexSingleEscape = /["'\\\b\f\n\r\t]/;

var regexDigit = /[0-9]/;
var regexWhitelist = /[\x20\x21\x23-\x26\x28-\x5B\x5D-\x7E]/;
var regexWhitelist = /[ !#-&\(-\[\]-~]/;

var jsesc = function(argument, options) {
// Handle options
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
"grunt": "~0.4.4",
"grunt-shell": "~0.6.4",
"grunt-template": "~0.2.3",
"istanbul": "~0.2.6",
"qunit-clib": "~1.3.0",
"istanbul": "~0.2.7",
"qunit-extras": "~1.0.0",
"qunitjs": "~1.11.0",
"regenerate": "~0.5.4",
"regenerate": "~0.6.0",
"requirejs": "~2.1.11"
}
}
17 changes: 11 additions & 6 deletions tests/tests.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
;(function(root) {
(function(root) {
'use strict';

/** Use a single `load` function */
var load = typeof require == 'function' ? require : root.load;
var noop = Function.prototype;

var load = (typeof require == 'function' && !(root.define && define.amd)) ?
require :
(!root.document && root.java && root.load) || noop;

/** The unit testing framework */
var QUnit = (function() {
var noop = Function.prototype;
return root.QUnit || (
root.addEventListener || (root.addEventListener = noop),
root.setTimeout || (root.setTimeout = noop),
root.QUnit = load('../node_modules/qunitjs/qunit/qunit.js') || root.QUnit,
(load('../node_modules/qunit-clib/qunit-clib.js') || { 'runInContext': noop }).runInContext(root),
addEventListener === noop && delete root.addEventListener,
root.QUnit
);
}());

var qe = load('../node_modules/qunit-extras/qunit-extras.js');
if (qe) {
qe.runInContext(root);
}

// Extend `Object.prototype` to see if this library can handle it.
Object.prototype['♥'] = '...';

Expand Down

0 comments on commit cd4698c

Please sign in to comment.