]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/test/object/validate-stringifiable-value.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / node-gyp / node_modules / path-array / node_modules / array-index / node_modules / es6-symbol / node_modules / es5-ext / test / object / validate-stringifiable-value.js
1 'use strict';
2
3 module.exports = function (t, a) {
4         var x;
5         a.throws(function () { t(); }, TypeError, "Undefined");
6         a.throws(function () { t(null); }, TypeError, "Null");
7         a(t(0), "0");
8         a(t(false), "false");
9         a(t(''), "");
10         a(t({}), String({}), "Object");
11         a(t(x = function () {}), String(x), "Function");
12         a(t(x = new String('raz')), String(x), "String object"); //jslint: ignore
13         a(t(x = new Date()), String(x), "Date");
14
15         a.throws(function () { t(Object.create(null)); }, TypeError, "Null prototype object");
16 };