Global symbols

This commit is contained in:
Tony Garnock-Jones 2019-06-13 21:29:55 +01:00
parent c1898ef73f
commit 5ab78e8281
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "preserves",
"version": "0.0.9",
"version": "0.0.10",
"description": "Experimental data serialization format",
"homepage": "https://gitlab.com/tonyg/preserves",
"license": "MIT",

View File

@ -1,8 +1,8 @@
"use strict";
// Symbols for various Preserves protocols.
const PreserveOn = Symbol('PreserveOn');
const AsPreserve = Symbol('AsPreserve');
const PreserveOn = Symbol.for('PreserveOn');
const AsPreserve = Symbol.for('AsPreserve');
Object.assign(module.exports, {
PreserveOn,