Update to latest jsonld.js.
authorDave Longley <dlongley@digitalbazaar.com>
Thu, 28 Feb 2013 16:20:16 -0500
changeset 1359 12b96298e413
parent 1358 f673913d09ea
child 1360 64f71d511536
Update to latest jsonld.js.
playground/jsonld.js
--- a/playground/jsonld.js	Thu Feb 28 16:12:18 2013 -0500
+++ b/playground/jsonld.js	Thu Feb 28 16:20:16 2013 -0500
@@ -2450,10 +2450,10 @@
           '@context must be a string or null.',
           'jsonld.SyntaxError', {context: ctx});
       }
-      else if(!_isAbsoluteIri(base)) {
+      else if(base !== '' && !_isAbsoluteIri(base)) {
         throw new JsonLdError(
           'Invalid JSON-LD syntax; the value of "@base" in a ' +
-          '@context must be an absolute IRI.',
+          '@context must be an absolute IRI or the empty string.',
           'jsonld.SyntaxError', {context: ctx});
       }
       else {