
js.prompto.value.NullValue.js Maven / Gradle / Ivy
var Value = require("./Value").Value;
var NullType = require("../type/NullType").NullType;
function NullValue() {
Value.call(this, NullType.instance);
return this;
}
NullValue.prototype = Object.create(Value.prototype);
NullValue.prototype.constructor = NullValue;
NullValue.prototype.toString = function() {
return "null";
};
NullValue.prototype.getStorableData = function() {
return null; // <- YES!
};
NullValue.prototype.convertToJavaScript = function() {
return null; // <- YES!
};
NullValue.instance = new NullValue();
exports.NullValue = NullValue;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy