Permalink
Browse files

Set String.prototype.profile as a hidden property

But maybe it should be String.profile instead?
  • Loading branch information...
1 parent c3ababe commit 2a496c240eb26d7224542ebb8d405a977ddc1bd6 @awwright committed Mar 29, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Builtins.js
View
@@ -23,7 +23,8 @@ function pad(v,l){
return ('0000'+v).substr(-(l||2));
}
-var env = exports.environment = String.prototype.profile = new RDFEnvironment;
+var env = exports.environment = new RDFEnvironment;
+Object.defineProperty(String.prototype, 'profile', _(env));
require('./Default.js').loadDefaultPrefixMap(env);
// N-Triples encoder

0 comments on commit 2a496c2

Please sign in to comment.