Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated Developer Docs

  • Loading branch information...
commit 83a446818688bf25d84d10c241139eebd28ee484 1 parent 2866e8b
@davglass authored
Showing with 12 additions and 39 deletions.
  1. +12 −1 DEVELOPER.markdown
  2. +0 −38 lib/yui3-error.js
View
13 DEVELOPER.markdown
@@ -1,4 +1,15 @@
-#Testing the latest YUI release with Node
+##Packaging
+
+To install from this source tree:
+
+ make dev
+
+To make all packages
+
+ make all
+ make install
+
+##Testing the latest YUI release with Node
I've tried to make it simple to test the latest YUI source code against my nodejs package.
First you need to install yuitest:
View
38 lib/yui3-error.js
@@ -1,38 +0,0 @@
- // Extract meaning from stack traces
-var STACK_FRAME_RE = /.* \(?(.+:\d+:\d+)\)?$/;
-
-
-//Helper methods
-//Get the Error Message from the stack
-exports.getMessage = function(e) {
- try {
- return e.message || e.stack.split('\n')[0].trim();
- } catch (e) {
- return 'YUI: failed to get error message';
- }
-};
-
-// Get the filename for a given exception
-exports.getFilename = function(e) {
- try {
- var m = e.stack.split('\n')[1].match(STACK_FRAME_RE);
- return m[1].substring(
- 0,
- m[1].lastIndexOf(':', m[1].lastIndexOf(':') - 1)
- );
- } catch (e) {
- return 'YUI: failed to get error filename';
- }
-};
-
-// Get the line number for a given exception
-exports.getLine = function(e) {
- try {
- var m = e.stack.split('\n')[1].match(STACK_FRAME_RE);
- var parts = m[1].split(':');
- return parseInt(parts[parts.length - 2]);
- } catch (e) {
- return -1;
- }
-};
-
Please sign in to comment.
Something went wrong with that request. Please try again.