Comments (4)
RegExp is not encodable as anything else. It is in fact an object and has no enumerable properties.
var re = /[a-z]/;
console.log(typeof re); // "object"
for(var property in re) console.log(property); // nothing
from env-js.
Hi,
indeed it prints out nothing. For my purposes i should store the source string.
according to it (and tested) regex have attributes but for some reason they doesn't iterate
from env-js.
Don't know what to tell you. It just single does not work. JSON treats it as an object and none of the properties are enumerable (meaning for(i in obj) does not see them). Every implementation of JSON will give you the same result. Your best bet would be storing the regexp as a string and somewhere in your application use new RegExp(reString)
from env-js.
indeed, the best option is to store the string instead the literal regex
from env-js.
Related Issues (20)
- Rhino XHR 404 Response Error
- Tag 1.3.pre1 Ant Build Failure on rhino-env target HOT 3
- Does it works with Ruby 1.9 and V8 on Linux box ? HOT 1
- Settings problem with Ruby 1.9 and TheRubyRacer V8. HOT 1
- Bug with Envjs.WriteToFile in envjs/platform/rubyracer.js on Linux
- 1.3pre1: jQuery 1.4.4 elements inaccessible with document.getElementById HOT 1
- 1.3pre1: parser.js missing primitive byte types HOT 1
- cookie problems in version 1.2
- Content-Length needs to be specdified for spydermonkey port
- Getting an error using this with Capybara 1.0.0 HOT 1
- Disable logging
- Created script node is evaluated immediately
- Issue with addEvent in dojo/_firebug/firebug.js HOT 1
- c.removeAttribute is not a function error
- Is "}, get xml() {" found in dom.js really correct JavaScript syntax?
- Support metro style app
- compareDocumentPosition Error
- IPv6 Support
- Env.js Website Down? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from env-js.