MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / escapeValue

Function escapeValue

Three.js/js/parser.js:75–87  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

73 };
74
75 function escapeValue(v) {
76 if (typeof v === "string") {
77 escapable.lastIndex = 0;
78 return escapable.test(v) ?
79 "'" + v.replace(escapable, function (a) {
80 var c = meta[a];
81 return typeof c === 'string' ? c :
82 '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
83 }) + "'" :
84 "'" + v + "'";
85 }
86 return v;
87 }
88
89 Expression.prototype = {
90 simplify: function (values) {

Callers 1

parser.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected