Comparing version 1.2.4 to 1.2.5
@@ -148,2 +148,2 @@ /* | ||
'Xhr2' | ||
] | ||
]; |
{ | ||
"name": "51degrees", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "51degrees c-sdk native bindings for nodejs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
15
test.js
@@ -43,2 +43,17 @@ /* | ||
test('pattern overflow', function(t) { | ||
var ua = new Buffer(1000); | ||
for (var i=0; i<1000; i++) { | ||
ua[i] = 50; | ||
} | ||
var parser = new Parser('pattern', {properties: properties}); | ||
var throwed = false; | ||
try { parser.parse(ua); } | ||
catch (e) { | ||
throwed = true; | ||
} | ||
t.equal(throwed, true); | ||
t.end(); | ||
}); | ||
test('trie', function(t) { | ||
@@ -45,0 +60,0 @@ var parser = new Parser('trie', {properties: properties}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
194982
194