created assert stub for the browser
This commit is contained in:
parent
1d752708c4
commit
2ae7743c7d
7
browser/assert.js
Normal file
7
browser/assert.js
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
var assert = {
|
||||
ok: function(value, message) {
|
||||
message = message || '';
|
||||
if(!value) throw new Error("assertion failed", message);
|
||||
}
|
||||
}
|
@ -1,7 +1,5 @@
|
||||
(function(tree) {
|
||||
var assert = require('assert') || {
|
||||
ok: function() { }
|
||||
};
|
||||
var assert = require('assert');
|
||||
|
||||
tree.Definition = function Definition(selector, rules) {
|
||||
this.elements = selector.elements;
|
||||
|
Loading…
Reference in New Issue
Block a user